package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 付款对象 t_payment
 * 
 * @author liuyu
 * @date 2024-11-04
 */
public class Payment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 关联应付账款表id */
    @Excel(name = "关联应付账款表id")
    private Long accountsPayableId;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private BigDecimal payAmount;

    /** 付款说明 */
    @Excel(name = "付款说明")
    private String payDescription;

    /** 付款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "付款日期", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date payTime;

    /** 交易单号 */
    @Excel(name = "交易单号")
    private String tradeNo;

    /** 附件 */
    @Excel(name = "附件")
    private String other;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccountsPayableId(Long accountsPayableId) 
    {
        this.accountsPayableId = accountsPayableId;
    }

    public Long getAccountsPayableId() 
    {
        return accountsPayableId;
    }
    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }
    public void setPayDescription(String payDescription) 
    {
        this.payDescription = payDescription;
    }

    public String getPayDescription() 
    {
        return payDescription;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setTradeNo(String tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() 
    {
        return tradeNo;
    }
    public void setOther(String other) 
    {
        this.other = other;
    }

    public String getOther() 
    {
        return other;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accountsPayableId", getAccountsPayableId())
            .append("payAmount", getPayAmount())
            .append("payDescription", getPayDescription())
            .append("payTime", getPayTime())
            .append("tradeNo", getTradeNo())
            .append("other", getOther())
            .toString();
    }
}
